package day050626;

public class Test14 {
    public static void main(String[] args) {
        int[] a={9,6,7,5};

        int sum=0;
        for (int i : a) {
            sum= sum+i;
        }
        System.out.println(sum);

        int sumRs=0;
        for (int i = 0; i < a.length; i++) {
            sumRs=sumRs+a[i];
        }
        System.out.println(sumRs);
    }
}
